package com.cby.android.base.web

import android.net.Uri
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.cby.android.base.R
import com.cby.android.base.kotlin.showToast

/**
 * @description: Scheme2Activity
 * @author: ChenBaoYang
 * @createDate: 2022/1/19 10:10 上午
 */
class Scheme2Activity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_scheme)
        val dataString = intent.dataString
        val data: Uri? = intent.data
        val id: String? = data?.getQueryParameter("id") //获取指定key下的参数
        val title: String? = data?.getQueryParameter("title") //获取指定key下的参数
        showToast("id=$id, title=$title")
    }
}